package cn.lyvust.demo.shili03;

import java.util.HashSet;
import java.util.Set;

/**
 * Description:
 * date: 2021-5-10 21:20
 *
 * @author Guo_guo
 * @since JDK 1.8
 */
public class SetTest {
    public static void main(String[] args) {
        Set set=new HashSet();
        String s1=new String("java");
        String s2=s1;
//		String s3=new String("java");
        String s3=new String("JAVA");
        set.add(s1);
        set.add(s2);
        set.add(s3);
        System.out.println(set.size());
    }
}
